﻿@{ 
    Layout = null;
}
@if (false)
{
    <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
      
}
<script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        alert("操作成功！");
        if ($("#hdRedirectURL").val() != "") {
            if ($('#hidIsParent').val() == "Y") {
                parent.window.location.href = $("#hdRedirectURL").val();
            } else {
                window.location.href = $("#hdRedirectURL").val();
            }
        }
        if ($("#hdIsPopUpFrom").val() == "Y") {
            parent.popUpClose();
        }
        if ($("#hdIsRefreshParent").val() == "Y") {
            window.close();
            window.opener.refresh();
        }
    });
</script>
@*转向的URL值*@
@Html.Hidden("hdRedirectURL", ViewData["RedirectURL"])
@*是否是弹出窗口*@
@Html.Hidden("hdIsPopUpFrom", ViewData["IsPopUpFrom"])
@*是否是刷新父窗口*@
@Html.Hidden("hdIsRefreshParent", ViewData["IsRefreshParent"])

@*是否是父窗口跳转*@
@Html.Hidden("hidIsParent", ViewData["IsParent"])
